package com.vic.hutool;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON;
import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author victor
 */
public class Test {

    public static void main(String[] args) {
//        Date beginDate = new Date();
//        DateTime dateTime = DateUtil.offsetDay(beginDate, -3);
//        System.out.println(DateUtil.between(beginDate, new Date(), DateUnit.DAY));

        for (int i = 0; i < 10; i++) {
            System.out.println(IdUtil.getSnowflake(1, 1).nextIdStr());
        }


//        if(DateUtil.between(, new Date(), DateUnit.DAY) < 7)

    }
}
